function [ rate ] = calcLearningRate( learned, total )
%CALCLEARNINGRATE Summary of this function goes here
%   Detailed explanation goes here


% if learned < 2
%     rate = 0.2;
% else
%     if learned < 4
%         rate = 0.4;
%     else
%         if learned < 6
%             rate = 0.6;
%         else
%             if learned < 8
%                 rate = 0.7;
%             else
%                 if learned < 10
%                     rate = 0.8;
%                 else
%                     rate = 0.99;
%                 end
%             end
%         end
%     end
% end

rate = max(1.0 - ( learned/total), 0.2);

end

